package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 报警分组关系表 实体类
 * 表名：ra_alarm_group_detail
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_alarm_group_detail")
public class RaAlarmGroupDetail implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 报警分组主键
     */
    @Column(name = "alarm_group_id", nullable = false)
    private Long alarmGroupId;
    
    /**
     * 报警详情主键
     */
    @Column(name = "alarm_record_detail_id", nullable = false)
    private Long alarmRecordDetailId;
    
    /**
     * 报警信号
     */
    @Column(name = "alarm_bit_no", length = 128)
    private String alarmBitNo;
    
    /**
     * 状态（0、未处理 1、已处理）
     * 默认值: 0
     */
    @Column(name = "status")
    private Byte status;
    
    @Override
    public String toString() {
        return "RaAlarmGroupDetail{" +
            "id=" + id +
            ", alarmGroupId=" + alarmGroupId +
            ", alarmRecordDetailId=" + alarmRecordDetailId +
            ", alarmBitNo=" + alarmBitNo +
            ", status=" + status +
        '}';
    }
} 